package com.example.myapplication.network;

import com.example.myapplication.models.Banner;
import com.example.myapplication.models.Category;
import com.example.myapplication.models.Course;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface ApiService {
    @GET("banners")
    Call<List<Banner>> getBanners();

    @GET("categories")
    Call<List<Category>> getCategories();

    @GET("courses/recommended")
    Call<List<Course>> getRecommendedCourses();

    @GET("courses/{id}")
    Call<Course> getCourseDetail(@Path("id") int courseId);

    @GET("categories/{id}/courses")
    Call<List<Course>> getCoursesByCategory(@Path("id") int categoryId);
}